#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
int main() {
    double a = 0, b = 0, c = 0;
    while (scanf("%lf %lf %lf", &a, &b, &c) != EOF) {
        if (a == 0)
            printf("Not quadratic equation\n");
        else if (a != 0) {
            double n = 0, m = 0, m1 = 0;
            n = b * b - 4 * a * c;
            if (n == 0) {
                m = -b / (2 * a);
                if (b == 0)
                    printf("x1=x2=%.2lf\n", b);
                else
                    printf("x1=x2=%.2lf\n", m);
            }
            else if (n > 0) {
                m1 = (-b - sqrt(n)) / (2 * a);
                m = (-b + sqrt(n)) / (2 * a);
                printf("x1=%.2lf;x2=%.2lf\n", m1, m);
            }
            else if (n < 0) {
                double s = -b / (2 * a);
                double x = sqrt(-n) / (2 * a);
                printf("x1=%.2lf-%.2lfi;x2=%.2lf+%.2lfi", s, x, s, x);
            }
        }
    }
    return 0;
}